import { Col } from 'antd';
import { localFieldConfig } from './BirthDate.config';
export { localFieldConfig } from './BirthDate.config';
import FormDatePick from '@/pages/Myantd/Form/FormDatePick';

const BirthDate = ({ FieldConfig, layout }: any) => {
  const fieldProps = FieldConfig?.['field-props'];

  return (
    <Col {...layout}>
      <FormDatePick
        labelName={FieldConfig?.field}
        disabled={fieldProps?.disabled === 'Y'}
        required={fieldProps?.required === 'Y'}
      />
    </Col>
  );
};
BirthDate.displayName = localFieldConfig.field;
export default BirthDate;
